package com.yeskery.nut.web.demo.biz;

import com.yeskery.nut.annotation.bean.Autowired;
import com.yeskery.nut.annotation.bean.Component;
import com.yeskery.nut.web.demo.common.Log;
import com.yeskery.nut.web.demo.domain.Product;
import com.yeskery.nut.web.demo.service.ProductService;

import java.util.List;

/**
 * 商品biz
 * @author Yeskery
 * 2023/7/28
 */
@Component
public class ProductBiz {

    @Autowired
    private ProductService productService;


    /**
     * 获取商品列表
     * @return
     */
    @Log("获取商品列表")
    public List<Product> getProductList() {
        return productService.list();
    }
}
